/*   
 * Copyright 2009-2010 Rob Schoening
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *    http://www.apache.org/licenses/LICENSE-2.0
 *    
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/

package com.example;

import org.beaconframework.vaadin.ui.ApplicationLayoutWindow;
import org.beaconframework.vaadin.ui.GenericApplication;
import org.beaconframework.vaadin.ui.SimpleTree;

import com.vaadin.ui.Label;

public class QuickstartApplication extends GenericApplication {

	/**
     * 
     */
    private static final long serialVersionUID = 8187008425505214041L;

    @Override
	public synchronized void init() {
		// TODO Auto-generated method stub
		super.init();

		ApplicationLayoutWindow w = new ApplicationLayoutWindow();

		setMainWindow(w);

		
		w.setMainComponent(new Label("Beacon Component Sampler"));

		w.setCaption("Beacon Demo Sampler");

		SimpleTree tc = new SimpleTree();
		tc.setImmediate(true);
		

	
		for (Object id : tc.rootItemIds()) {
			tc.expandItemsRecursively(id);
		}

		w.setLeftComponent(tc);
		
	
		
	}

}
